package com.sky.mapper;


import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishFlavorMapper {

    /**
     * 批量插入口味数据
     * @param flavors
     */

    void insertBatch(List<DishFlavor> flavors);

    /**
     * 更新口味表
     * @param id
     */
    void updateDishFlavor(Long id);

    /**
     * 删除口味
     * @param dishId
     */
    void deleteByDishId(Long dishId);

    List<DishFlavor> getByDishId(Long id);
}
